/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jforum.domain;

import java.util.Date;
import java.util.Map;

/**
 *
 * @author Вадим
 */
public class Ban extends Entity {

    private User user;
    private Date start_time, end_time;
    
    public Ban(int id, User user, long start_time, long end_time) {
        super.ID = id;
        this.user = user;
        this.start_time = new Date(start_time);
        this.end_time = new Date(end_time);
    }

    @Override
    public Map getPropertyMap() {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    /**
     * @return the user
     */
    public User getUser() {
        return user;
    }

    /**
     * @return the start_time
     */
    public Date getStart_time() {
        return start_time;
    }

    /**
     * @return the end_time
     */
    public Date getEnd_time() {
        return end_time;
    }

}
